package tables

type Order struct {
	Id              int    `xorm:"not null pk autoincr INT(10)" json:"id" form:"id" mapstructure:"id"`
	Acid            int    `xorm:"" json:"acid" form:"acid" mapstructure:"acid"`
	UserId          int    `xorm:"" json:"user_id" form:"user_id" mapstructure:"user_id"`
	Openid          string `xorm:"" json:"openid" form:"openid" mapstructure:"openid"`
	GoodsId         int    `xorm:"" json:"goods_id" form:"goods_id" mapstructure:"goods_id"`
	GoodsTitle      string `xorm:"" json:"goods_title" form:"goods_title" mapstructure:"goods_title"`
	GoodsPhoto      string `xorm:"" json:"goods_photo" form:"goods_photo" mapstructure:"goods_photo"`
	IsHead          int    `xorm:"" json:"is_head" form:"is_head" mapstructure:"is_head"`
	HeadUserId      int    `xorm:"" json:"head_user_id" form:"head_user_id" mapstructure:"head_user_id"`
	GroupId         int    `xorm:"" json:"group_id" form:"group_id" mapstructure:"group_id"`
	GroupNum        int    `xorm:"" json:"group_num" form:"group_num" mapstructure:"group_num"`
	GroupState      int    `xorm:"" json:"group_state" form:"group_state" mapstructure:"group_state"`
	GroupMemberNum  int    `xorm:"" json:"group_member_num" form:"group_member_num" mapstructure:"group_member_num"`
	OrderNo         string `xorm:"" json:"order_no" form:"order_no" mapstructure:"order_no"`
	Name            string `xorm:"" json:"name" form:"name" mapstructure:"name"`
	Phone           string `xorm:"" json:"phone" form:"phone" mapstructure:"phone"`
	Nickname        string `xorm:"" json:"nickname" form:"nickname" mapstructure:"nickname"`
	Avatar          string `xorm:"" json:"avatar" form:"avatar" mapstructure:"avatar"`
	IsNewOld        string `xorm:"" json:"is_new_old" form:"is_new_old" mapstructure:"is_new_old"`
	Form            string `xorm:"" json:"form" form:"form" mapstructure:"form"`
	PayAmount       string `xorm:"" json:"pay_amount" form:"pay_amount" mapstructure:"pay_amount"`
	PayTime         int    `xorm:"" json:"pay_time" form:"pay_time" mapstructure:"pay_time"`
	PayState        int    `xorm:"" json:"pay_state" form:"pay_state" mapstructure:"pay_state"`
	HxState         int    `xorm:"" json:"hx_state" form:"hx_state" mapstructure:"hx_state"`
	HxTime          int    `xorm:"" json:"hx_time" form:"hx_time" mapstructure:"hx_time"`
	RefundState     int    `xorm:"" json:"refund_state" form:"refund_state" mapstructure:"refund_state"`
	RefundMsg       string `xorm:"" json:"refund_msg" form:"refund_msg" mapstructure:"refund_msg"`
	FromId          int    `xorm:"" json:"from_id" form:"from_id" mapstructure:"from_id"`
	FromId2         int    `xorm:"" json:"from_id2" form:"from_id2" mapstructure:"from_id2"`
	StaffId         int    `xorm:"" json:"staff_id" form:"staff_id" mapstructure:"staff_id"`
	VerifierId      int    `xorm:"" json:"verifier_id" form:"verifier_id" mapstructure:"verifier_id"`
	FailMsg         string `xorm:"" json:"fail_msg" form:"fail_msg" mapstructure:"fail_msg"`
	IsRobot         int    `xorm:"" json:"is_robot" form:"is_robot" mapstructure:"is_robot"`
	RobotId         int    `xorm:"" json:"robot_id" form:"robot_id" mapstructure:"robot_id"`
	CreatedAt       int    `xorm:"created" json:"created_at" form:"created_at" mapstructure:"created_at"`
	UpdatedAt       int    `xorm:"updated" json:"updated_at" form:"updated_at" mapstructure:"updated_at"`
	DeletedAt       int    `xorm:"deleted" json:"deleted_at" form:"deleted_at" mapstructure:"deleted_at"`
	Address         string `xorm:"" json:"address" form:"address" mapstructure:"address"`
	TrackingNumber  string `xorm:"" json:"tracking_number" form:"tracking_number" mapstructure:"tracking_number"`
	TrackingCompany string `xorm:"" json:"tracking_company" form:"tracking_company" mapstructure:"tracking_company"`
	TrackingState   int    `xorm:"" json:"tracking_state" form:"tracking_state" mapstructure:"tracking_state"`
}
